home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming an RTS Game with Direct3D
/
Programming an RTS Game with Direct3D.iso
/
Examples
/
Chapter 12
/
Example 12.5
/
Debug
/
Shaders
/
objects.ps
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2006-04-12
|
307 b
|
12 lines
sampler diffuseText;
sampler light;
float4 Main(float2 UV : TEXCOORD0, float2 worldUV : TEXCOORD1, float shade : TEXCOORD2) : COLOR
{
//Sample the textures
float4 col = tex2D(diffuseText, UV);
float4 l = tex2D(light, worldUV);
//Return result
return col * shade * l;
}